package org.pybaldaj.logic;

import java.util.LinkedList;
import java.util.ListIterator;

/**
 * The client class.
 * XXX singleton or static functions?
 * @author akademi4eg
 *
 */
public class AppClient {

	public static AppClient getInstance ()
	{
		if (instance == null)
		{
			instance = new AppClient ();
		}
		
		return instance;
	}
	
	public void setSystemUser (Player pl)
	{
		system_user = pl;
	}
	
	public static Player getSystemUser ()
	{
		return system_user;
	}
	
	public ListIterator<Game> getGames ()
	{
		return games.listIterator();
	}
	
	private static AppClient instance = null;
	private static Player system_user;
	private LinkedList<Game> games;
}
